<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.1.0.js"></script>
<script>
$(function(){
	$("#boardListBtn").click(function(){
		if($("#word").val().length<2){
			alert("검색어는 두 글자 이상 입력해주세요");
			return false;
		}
		location.href="${initParam.root}collection/"+$("#findCollection").val()+"?word="+$("#word").val();
	});
});//ready
</script>
<b>자소서첨삭</b><br><br>
<table class="corr_list_table">
	<thead>
		<tr>
			<td width="12%">글번호</td>
			<td width="40%">제목</td>
			<td width="12%">작성자</td>
			<td width="12%">작성일</td>
			<td width="12%">조회수</td>
			<td width="12%">추천수</td>
		</tr>
	</thead>
	<tbody>
		<tr><td colspan="8" align="center">검색 결과가 없습니다.</td></tr>
	</tbody>
	<tfoot>
		<tr>
			<td colspan="6" align="right"><a
				href="${initParam.root }/collection/auth_writeCollectionGo.do">글쓰기</a></td>
		</tr>
	</tfoot>
</table>
<br>
<center>
<select id="findCollection">
		<option value="findCollectionByTitle.do">제목</option>
		<option value="findCollectionByContent.do">내용</option>
		<option value="findCollectionByTitleAndContent.do">제목+내용</option>
	</select>
	<input type="search" id="word">
	<input type="button" id="boardListBtn" value="검색">
</center>